<cfinclude template="/includes/topbar.cfm" />
<script type="text/javascript" src="/assets/js/myfund.js"></script>
<cfset myFunds = application.s.fundService.listMyFunds() />
<cfoutput>
	<div class="underwrapper">
		<div class="titlemsg">
			<table width="100%">
				<tr>
					<td id="notLoggedInTD" width="50%" style="display:none;">My #myfunds.recordcount# fund<cfif myfunds.recordcount gt 1>s</cfif></td>
					<td id="loggedInTD" width="50%"><h2>My #myFunds.recordcount# Fund<cfif myFunds.recordcount gt 1>s</cfif></h2></td>
					<td class="mydonation_myfund_link"><a href="my-donation.cfm"><span class="tinylink">My 1 Donation</span></a></td>
				</tr>
			</table>
		</div>
		
		<!--- loop of funds --->
		<div id="fundArea">
			#application.u.fundUtil.renderMyFundRows(action="edit")#
		</div>
		
		<table width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<td width="50%">
					<form action="/newfund.cfm">
						<input type="submit" class="button" value="Create another fund">
					</form>
				</td>
				<td width="50%" style="text-align:right;"><input type="submit" class="button" value="$ Withdraw"></td>
			</tr>
		</table>
	</div>
</cfoutput>